Print application command
A Print command is a request to print one or more objects.SYNTAX
print referenceToObjectPARAMETER
- referenceToObject
- A reference to the object or objects to print--typically file(s), document(s), or window(s).
Class: Reference or list of referencesRESULT
NoneEXAMPLES
tell application "Scriptable Text Editor" print document "Introduction"end tell tell application "Scriptable Text Editor" print windows 1 thru 5 end tell tell application "Scriptable Text Editor" print { file "HD:Letters:Zoning Department", ÿ file "HD:Letters:Mayor"} end tellNOTES
To specify the name of a file to print, use the termfile
oralias
followed by a string of the form"Disk:Folder1:Folder2:...:Filename"
; for details, see "References to Files," which begins on page 144. You can also specify a string with only a filename ("Filename"). In this case, the application attempts to find the file in the current directory.